package com.zhkjnet.zhyy.dao;

import com.zhkjnet.zhyy.entity.Asset;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssetDao {

    void save(Asset asset);

    void updateByUserId(Asset asset);

    int update(Asset asset);

    Asset findByUserId(Long userId);

    void sumFixedMoneyById(@Param("id") Long id, @Param("money") Long money);

    void sumSignMoneyByUserId(@Param("userId") Long userId, @Param("money") Long money);

    List<Asset> findAllCashbackAsset();

    Asset findAssetByOilRechargeId(Long rechargeId);

    List<Asset> findAllRemind();
}
